.diary {
  width: 100%;
  height: 100%;
  .panel {
    background-color: #f1f3f4;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-align: center;
    padding: 20px;
    .grid {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      grid-gap: 8px;
      @media (min-width: 767px) {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 16px;
      }
      @media (min-width: 1024px) {
        grid-template-columns: repeat(2, 1fr);
      }
      @media (min-width: 1204px) {
        grid-template-columns: repeat(3, 1fr);
      }
      @media (min-width: 1504px) {
        grid-template-columns: repeat(4, 1fr);
      }

      .grid-item {
        display: flex;
        width: 100%;
        height: 250px;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        justify-content: space-evenly;
        align-items: center;
        flex-direction: column;
        cursor: pointer;
        @media (min-width: 608px) {
          height: 400px;
        }
      }
      .title-warrper {
        color: #e6e6e6;
        text-align: center;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        display: flex;
        -webkit-box-pack: center;
        justify-content: center;
        align-items: center;
        padding: 8px;
        font-size: 20px;
        @media (min-width: 608px) {
          padding: 16px;
          font-size: 24px;
        }
      }
      .text-warrper {
        height: 100%;
        text-align: center;
        background: #fff;
        font-size: 14px;
        display: flex;
        -webkit-box-pack: center;
        justify-content: center;
        overflow: hidden;
        .box {
          padding: 16px;
          .title {
            font-size: 18px;
            font-weight: 700;
            padding-bottom: 16px;
          }
          .text {
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            text-wrap: wrap;
          }
        }
      }
    }
  }
}
